project( xdmGrid )

set( ${PROJECT_NAME}_HEADERS 
    Attribute.hpp
    CollectionGrid.hpp
    Domain.hpp
    Geometry.hpp
    Grid.hpp
    NamespaceMacro.hpp
    RectilinearMesh.hpp
    StructuredTopology.hpp
    TensorProductGeometry.hpp
    Time.hpp
    Topology.hpp
    UniformGrid.hpp
)

set( ${PROJECT_NAME}_SOURCES
    Attribute.cpp
    CollectionGrid.cpp
    Domain.cpp
    Geometry.cpp
    Grid.cpp
    RectilinearMesh.cpp
    StructuredTopology.cpp
    TensorProductGeometry.cpp
    Time.cpp
    Topology.cpp
    UniformGrid.cpp
)

add_library( ${PROJECT_NAME} STATIC 
    ${${PROJECT_NAME}_HEADERS}
    ${${PROJECT_NAME}_SOURCES}
)

target_link_libraries( ${PROJECT_NAME}
    xdm
)

if( BUILD_TESTING )
    add_subdirectory( test )
endif()

